package blackitheima1;

import java.io.FileOutputStream;
import java.io.IOException;

//字节流写多个字节
public class MyOutPut1 {
    public static void main(String[] args) throws IOException {
        //创建字节流对象
        FileOutputStream ops=new FileOutputStream("day11\\aaa");
        //ops.write(97);

//        byte[] byt={97,98,99};
//        ops.write(byt);

        byte[] byt={97,98,99,100,101,102};
        //byt数组 从1索引开始,书写2个字节
        ops.write(byt,1,2);
        ops.close();
    }
}
